﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Collections.Generic;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using TarreOA.TarreOABLL;
public partial class page_ShowNews : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

        int id = Convert.ToInt32(Request["id"]);
        TarreOA.TarreOABLL.News news = new TarreOA.TarreOABLL.News();
        List<TarreOA.TarreOAModels.News> list = news.getNews(id);
        foreach (TarreOA.TarreOAModels.News news1 in list)
            {
                LblNewsDetail.Text = news1.Detail;
                Label1.Text = news1.IssueTime;
                Label3.Text = news1.Title;
            }
        

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("./NewsShowIframe.aspx");
    }
}
